#pragma once
#include"fraction.h"
class martix :public fraction {
private:
	int m, n;
public:
    fraction** element;
	martix(fraction* b, int r, int l);
	martix(int r, int l);
	martix operator + (martix& b);
	martix operator - (martix& b);
	martix operator * (martix& b);
	fraction det();
	martix inv();
    QString print();
	friend martix operator * (int a, martix& b);
	friend martix operator * (martix& b, int a);
	friend martix operator * (fraction a, martix& b);
	friend martix operator * (martix& b, fraction a);
	~martix() {};
    int getm(){return m;}
    int getn(){return n;}
};


